<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我 - 我的博客</title>
    <!-- CSS文件引入 -->
    <link rel="stylesheet" href="../css/utils/variables.css">
    <link rel="stylesheet" href="../css/utils/responsive.css">
    <link rel="stylesheet" href="../css/components/header.css">
    <link rel="stylesheet" href="../css/components/sidebar.css">
    <link rel="stylesheet" href="../css/components/footer.css">
    <link rel="stylesheet" href="../css/styles.css">
</head>
<body>
    <!-- 头部导航 -->
    <header id="header">
        <div class="container">
            <div class="logo">
                <a href="../index.html">我的博客</a>
            </div>
            <nav class="nav">
                <ul>
                    <li><a href="../index.html">首页</a></li>
                    <li><a href="about.html">关于</a></li>
                    <li><a href="contact.html" class="active">联系</a></li>
                </ul>
            </nav>
            <div class="mobile-menu">
                <button id="menu-toggle"><span></span><span></span><span></span></button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main class="container">
        <!-- 联系页面内容 -->
        <section class="content">
            <article class="contact-article">
                <h1>联系我</h1>
                
                <div class="contact-content">
                    <div class="contact-info">
                        <h2>联系方式</h2>
                        <ul>
                            <li>
                                <strong>邮箱：</strong>
                                <a href="mailto:contact@example.com">contact@example.com</a>
                            </li>
                            <li>
                                <strong>微信：</strong>
                                <span>example_wechat</span>
                            </li>
                            <li>
                                <strong>GitHub：</strong>
                                <a href="https://github.com/example" target="_blank">github.com/example</a>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="contact-form">
                        <h2>发送消息</h2>
                        <form id="contact-form">
                            <div class="form-group">
                                <label for="name">姓名</label>
                                <input type="text" id="name" name="name" required placeholder="请输入您的姓名">
                            </div>
                            
                            <div class="form-group">
                                <label for="email">邮箱</label>
                                <input type="email" id="email" name="email" required placeholder="请输入您的邮箱">
                            </div>
                            
                            <div class="form-group">
                                <label for="subject">主题</label>
                                <input type="text" id="subject" name="subject" required placeholder="请输入消息主题">
                            </div>
                            
                            <div class="form-group">
                                <label for="message">消息内容</label>
                                <textarea id="message" name="message" rows="6" required placeholder="请输入您的消息内容"></textarea>
                            </div>
                            
                            <button type="submit" class="submit-btn">发送消息</button>
                        </form>
                        <div id="form-status" class="form-status"></div>
                    </div>
                </div>
            </article>
        </section>

        <!-- 侧边栏 -->
        <aside class="sidebar">
            <!-- 搜索框 -->
            <div class="search-box">
                <input type="text" placeholder="搜索文章..." id="search-input">
                <button id="search-btn">搜索</button>
            </div>

            <!-- 分类 -->
            <div class="category-list">
                <h3>文章分类</h3>
                <ul id="category-list">
                    <!-- 分类将通过JavaScript动态加载 -->
                </ul>
            </div>

            <!-- 热门文章 -->
            <div class="popular-posts">
                <h3>热门文章</h3>
                <ul id="popular-posts">
                    <!-- 热门文章将通过JavaScript动态加载 -->
                </ul>
            </div>
        </aside>
    </main>

    <!-- 页脚 -->
    <footer id="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-info">
                    <h3>我的博客</h3>
                    <p>分享技术与生活的点滴</p>
                </div>
                <div class="footer-links">
                    <h4>快速链接</h4>
                    <ul>
                        <li><a href="../index.html">首页</a></li>
                        <li><a href="about.html">关于</a></li>
                        <li><a href="contact.html">联系</a></li>
                    </ul>
                </div>
                <div class="footer-contact">
                    <h4>联系方式</h4>
                    <p>邮箱: contact@example.com</p>
                </div>
            </div>
            <div class="copyright">
                <p>&copy; 2024 我的博客. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <!-- JavaScript文件引入 -->
    <script src="../js/modules/utils.js"></script>
    <script src="../js/modules/api.js"></script>
    <script src="../js/components/header.js"></script>
    <script src="../js/components/sidebar.js"></script>
    <script src="../js/components/footer.js"></script>
    <script src="../js/main.js"></script>
</body>
</html>